document.addEventListener("deviceready", onDeviceReady, false);
function onDeviceReady() {
    // when all is done, execute bootstrap angular application
    angular.bootstrap(document, ['myApp']);
}
